package org.HU.train.common.config;

/**
 * @Author ZUZ
 * @Description: 全局注解，解决前后端交互Long类型精度丢失的问题
 * @Date 2024-12-20 19:43
 * @ClassName: JacksonConfig
 */
/*@Configuration
public class JacksonConfig {
    @Bean
    public ObjectMapper jacksonObjectMapper(Jackson2ObjectMapperBuilder builder) {
        ObjectMapper objectMapper = builder.createXmlMapper(false).build();
        SimpleModule simpleModule = new SimpleModule();
        simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
        objectMapper.registerModule(simpleModule);
        return objectMapper;
    }
}*/
